import { AppRouteRecordRaw } from '../types';
import { DEFAULT_LAYOUT } from '../base';

const MARKDOWN: AppRouteRecordRaw = {
  path: '/question',
  name: 'question',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.question.admin',
    requiresAuth: true,
    icon: 'icon-book',
    order: 3,
  },
  children: [
    {
      path: 'list',
      name: 'questionList',
      component: () => import('@/views/admin/quesiton/index.vue'),
      meta: {
        locale: 'menu.question.admin.list',
        requiresAuth: true,
        roles: ['*'],
      },
    }
  ]
};

export default MARKDOWN;
